const db = uniCloud.database()
const dbCmd = db.command

const addCoin = params => {
	const user = db.collection('uni-id-users').where({
		_id: params.user_id
	}).update({
		coin: 100
	})

	db.collection('uni-id-scores').add(params)
	return null
}

module.exports = {
	addCoin
}